import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
 class Text_Style{
   final FontWeight fontWeight;
   final double titlefontSize;
   final double subtitlefontSize;
   final Color color;

   Text_Style({
     this.titlefontSize=20,
     this.subtitlefontSize=18,
     this.fontWeight=FontWeight.w900,

     this.color
     ,});

   setTitle(Color color){
     return TextStyle(color: color,fontSize: titlefontSize,fontWeight: fontWeight);
   }

    setSubTitle(Color color,{bool isFontWeight=false}){
     //子标题是否加粗
     if(isFontWeight){
       return TextStyle(color: color,fontSize: subtitlefontSize,);
     }else{
       return TextStyle(color: color,fontSize: subtitlefontSize,fontWeight: fontWeight);
     }

   }

}